package org.nudt.common.model

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table

@Entity
@Table(name = "user")
data class User(
    
    @Id
    @Column(name = "appid", nullable = false, length = 50)
    var appid: String,
    
    @Column(name = "username", nullable = false, length = 50)
    var username: String,
    
    @Column(name = "nickname", length = 30)
    var nickname: String? = null,
    
    @Column(name = "avatar", length = 100)
    var avatar: String? = null,
    
    @Column(name = "gender")
    var gender: Int? = null,
    
    @Column(name = "app_version", length = 20)
    var appVersion: String? = null,
    
    @Column(name = "os_version")
    var osVersion: String? = null,
    
    @Column(name = "device_name", length = 50)
    var deviceName: String? = null,
    
    @Column(name = "enabled")
    var enabled: Byte? = null
) : BaseEntity()